import React,{Component, PropTypes} from 'react';
import ReactDom from 'react-dom';

export class InputSearch extends Component {
    render() {
        return (
            <div className="index-nav">
                <label htmlFor="searchID" className="icon-search"></label>
                <input type="text" id="searchID" placeholder={this.props.placeHolder}/>
            </div>
        )
    }
}


InputSearch.contextTypes = {
    placeHolder: React.PropTypes.string,  //placeholder提示词
    getSubmit: React.PropTypes.func  //搜索提交函数
}